package com.yuhs.zixing.study.design.pattern.dp002.structural.s004.composite.c001;

import java.util.ArrayList;

/**
 * @description:
 * @author: yuhs
 * @date: 2022/5/1 9:46 PM
 */
public interface IBranch001 {
    //获得信息
    public String getInfo();

    //增加数据节点，例如研发部下设的研发一组
    public void add(IBranch001 branch);

    //增加叶子节点
    public void add(ILeaf001 leaf);

    //获得下级信息
    public ArrayList getSubordinateInfo();
}
